package com.mit.service.security.dao.impl;

import java.util.HashMap;

import com.mit.common.security.dto.UserDTO;
import com.mit.service.core.dao.AbstractDAO;
import com.mit.service.security.dao.IUserDAO;

public class UserDAOImpl extends AbstractDAO implements IUserDAO {

	@Override
	public UserDTO retrieveUser(String username, String password) {
		HashMap map = new HashMap();
		map.put("username", username);
		map.put("password", password);
		
		return (UserDTO)getSqlMapClientTemplate().queryForObject("getUserByNamePwd", map);
	}

}
